package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class OrderTemp implements Serializable{
    private Integer id;
    private String productionName;
    private String underlying;
    private Float nominalMoney;
    private Float buyPrice;
    private Long cycleTime;
    private Integer type;
    public String getUnderlying() {
        return underlying;
    }

    public void setUnderlying(String underlying) {
        this.underlying = underlying;
    }

    public Float getNominalMoney() {
        return nominalMoney;
    }

    public void setNominalMoney(Float nominalMoney) {
        this.nominalMoney = nominalMoney;
    }

    public Long getCycleTime() {
        return cycleTime;
    }

    public void setCycleTime(Long cycleTime) {
        this.cycleTime = cycleTime;
    }

    public Date getExpiringDate() {
        return expiringDate;
    }

    public void setExpiringDate(Date expiringDate) {
        this.expiringDate = expiringDate;
    }

    public Integer getMdOptionId() {
        return mdOptionId;
    }

    public void setMdOptionId(Integer mdOptionId) {
        this.mdOptionId = mdOptionId;
    }

    @JsonSerialize(using=DateJsonSerializer.class)
    @JsonDeserialize(using=DateJsonDeserializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date expiringDate;
    private Integer mdOptionId;
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductionName() {
        return productionName;
    }

    public void setProductionName(String productionName) {
        this.productionName = productionName;
    }

    public String getUderlying() {
        return underlying;
    }

    public void setUderlying(String uderlying) {
        this.underlying = uderlying;
    }

    public Float getNonimalMoney() {
        return nominalMoney;
    }

    public void setNonimalMoney(Float nonimalMoney) {
        this.nominalMoney = nonimalMoney;
    }

    public Float getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(Float buyPrice) {
        this.buyPrice = buyPrice;
    }



    public Float getProfit() {
        return profit;
    }

    public void setProfit(Float profit) {
        this.profit = profit;
    }

    private Float profit;

}
